﻿@{

}
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RC.Dal.EFDal;
using RC.Dal.IDal;

namespace @Model.NameSpace
{
    public class DalFactory
    {
        @Raw(@"public static IBaseDal<T> GetBaseDal<T>(object dbContent) where T : class
        {
            return new BaseDal<T>((DbContext)dbContent);
        }")
    @foreach (var table in @Model.Tables)
    {
    string a = string.Format(@"
        public static I{0}Dal Get{0}Dal(object dbContent)
        {{
            return new {0}Dal((DbContext)dbContent);
        }}
     
        ", table.name);
        @Raw(a)
    }
    }
}

